﻿using Se.Model;
using Se.Model.GMCommand;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SeServer.Common
{
    /// <summary>
    /// GM指令生产地
    /// </summary>
    public class GMCommandFactory
    {
        private GMCommandController _commandController;

        public GMCommandManager Manager { get; private set; }

        public GMCommandFactory()
        {
            this._commandController = new GMCommandController();
            this.Manager = new GMCommandManager();
            //TODO GM指令开关
            this.Manager.CommandMode = GMCommandModes.On;
            this.Manager.CollectAllGMCommand("*.dll");
            this.Manager.CollectAllGMCommand("*.exe");
            this.Manager.RegisterCommand(this._commandController);
        }
    }
}
